import axios from '~/axios'

export function getImageList(id,page){  
  return axios.get(`/admin/image_class/${id}/image/${page}`) // ``  是反引号  可以嵌入变量或表达式${}
}

export function deleteImage(ids){  
  return axios.post("/admin/image/delete_all",{ids}) 
}

export function updateImage(id,name){  
  return axios.post("/admin/image/"+id,{name}) 
  //return axios.post(`/admin/image/${id}`,{name})
}

export const uploadImageAction = "/api/admin/image/upload"